<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <p>vue2的基本使用</p>

    <ul>
        <li v-for="ele in userInfo">{{ ele }}</li>
    </ul>

    <button @click="changeHandler">操作数据</button>

</div>
</body>
<script src="js/vue3.js"></script>

<script type="text/javascript">

    const user = {
        id: 12,
        name: 'andy'
    }

    const proxy = new Proxy(user, {
        get(target, p, receiver) {
            console.log(`属性 %s 被获取了`, p);
            console.log('receiver 是啥', receiver === proxy);
            return Reflect.get(target, p);
        }
    });

    console.log(proxy.name);






</script>

</html>
